Skip to content

Consolidate rescue branches (6 Dec cleanup) - #208

Open
PatrickSys wants to merge 85 commits into
masterfrom
consolidate/rescue-20261206
Open

PatrickSys wants to merge 85 commits into
masterfrom
consolidate/rescue-20261206

Conversation

@PatrickSys

Copy link
Copy Markdown
Owner

This PR follows Patrick’s “juntar reales” cleanup decision. It proposes bringing the remaining applicable changes into master and preserving every included rescue tip through a merge commit.

Review the conflict resolutions and verification below before deciding whether to merge. Use a merge commit if accepted so the original tips stay reachable.

Changes carried forward

  • Keyword search can reach a second matching file when one file supplies most of the highest-ranked chunks.
  • Indexing caps retained chunks and keeps health and scan totals. Concurrent requests share model initialization and the local ONNX thread budget is capped.
  • MCP validates memory inputs and pattern categories, caps supplemental memories, and includes HTTP regression coverage for the updated Hono adapter.
  • Angular retains the owner and exact source of method chunks. Existing indexes rebuild on the version 6 format.
  • The map-quality v2 fixtures and diagnostics are development evidence. Bare Subject names in JWT and email fixtures no longer create RxJS conventions.

Merged rescue branches

Branch Tip Tree resolution
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-recovered-milestone-v2.4-contextbench-be a677457151ede03aa044a9aaccb07454ff68ec8b History only
rescue/l27-wt-cbc-final-smoke-j11-memory a602c1fd1b960e479d473b7e8d9889806a6a9ca2 Cap retained keyword and semantic chunks during scanning, keep full health and stats with per-file aggregates, share pending model initialization without changing provider keys or native Ollama, and keep the shared ONNX thread cap plus EOF regression.
rescue/l27-assist-runs-night-20261106-n04-cbc-adapter-candidate-wip cfcbe33dedd538b51ad5271f14f6df564cab3aa4 Carry the adapter override and matching pnpm lockfile together with the local HTTP lifecycle regression tests.
rescue/l27-runs-cc-mcp-ux-20261030-repo-fix-mcp-ux-20261030 b95155ed6de090bdabfbc5d763305258446f0123 Validate memory input and pattern categories, preserve existing memory IDs and default type, cap supplemental memory previews, and retain ranked exemplars and conflict handling from master.
rescue/l27-runs-cc-retrieval-20261030-repo-feat-retrieval-file-coverage-20261030 71c16da3f811e4649f96335775331cd92f1c26ef Recover keyword file coverage on duplicate-heavy ranked lists. Keep current path rescue, declaration ranking, source validation, and the original source inspection budget. Retain the current benchmark page.
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-candidate-map-quality-eval-v2 77b55868b32a0eb6830f6edc0dff1b7906690a64 Carry the complete v2 frozen map-quality fixtures and diagnostics as development evidence only. Preserve existing eval modes and repository instructions.
rescue/l27-assist-runs-night-20261106-cb1-cbc-repo-wip 62748bf43d256b6be0806a8cd647d82346c2679a History only
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-wip b5f7daa40b51b9fcf5642d4c917607506ecb6567 Use an RxJS import or a specific RxJS subject as evidence so ordinary JWT and email Subject names no longer create false conventions. Master already has the index counts and next-action fixes in 7404795 and 8fbcfc6. Keep local roadmap, obsolete smoke notes, and allowlist diagnostics in history.
rescue/l27-assist-runs-night-20261106-or-cbc-repo-wip 21da48146a5b99f8813bcd8a0c2d935831f8c3af History only
rescue/l27-wt-cbc-night-init-wip 5b549f595f661355b1ea20bd6803ee88a188e613 History only
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-codex-cbc-product-relaunch-20261011 bd756bc5d99889aa73056e3b9ee81c6c622a3c12 Keep the genuine Angular declaration ownership work and its frozen fixture. Use current generation paths and bump the index format to migrate existing caches. Master already incorporates the rest of the model-free relaunch. Leave older workflow, setup, retrieval and release variants in history.
rescue/l27-assist-runs-night-20261106-cb1-cbc-repo-cb5-rejected-20261107 0c4d17fe187b0e70bd5cd5615da25ded67b94978 History only
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-candidate-map-quality-eval 51562f721d1c0f16ef2f83f5eda6db1b16908398 History only
rescue/l27-runs-day-20261103-cbc-pro-v2-160-source-wip da50cf87e8dee44946c0c5ed98372214f7e917e4 History only
rescue/l27-runs-ideaspine-cbc-consumer-20261104-cbc-source-fix-2.3.1-beta-doc-truth-20261104 206a60ebc2a97865e85b435b772e461d50367cbd History only
rescue/l27-wt-cbc-front-door-wip dfd36806c3934444ce42ea27005f5cee353f8f8a History only
rescue/l27-wt-cbc-help-wip 5baacd1c115b695ffa017389001a33fc52fee63d History only
rescue/l27-users-bitaz-runs-cbc-dogfood-20261020-master-wip 9faec024885112d97390aab2deeb10ecc8b76e2d History only
rescue/l27-users-bitaz-runs-cbc-dogfood-20261020-master-wip-4530854 45308548207004d576c475e17ed53989240909e2 History only
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-codex-public-truth-and-product-clarity c87353ba4986a2aef208175daf897f045475a88c History only
rescue/l27-assist-runs-day-20261204-l9-jobs-t3-157-codebase-context-wip 9a0a289909bdf36fb65a98f611a6671ef444019b History only
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-head 808e591ee1c8fef44d5a7638dfc6e782069fc336 History only
rescue/l27-wt-cbc-final-smoke-backup-j11-source-fixture-state d58f99304b68f2b076761467ab5aec464cf3b0fe History only

Conflict resolutions

Files and resolutions
Branch Conflicted files Resolution
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-recovered-milestone-v2.4-contextbench-be tests/contextbench-protocol.test.ts, tests/fixtures/contextbench-benchmark-protocol.json, tests/fixtures/contextbench-corrections.json Keep the current ContextBench protocol and fixtures from master (4525281 and its follow-ups), which already incorporate the frozen lane definitions and newer baseline selection governance.
rescue/l27-wt-cbc-final-smoke-j11-memory src/core/indexer.ts, src/embeddings/index.ts, src/embeddings/transformers.ts, tests/indexer-large-file-skip.test.ts Cap retained keyword and semantic chunks during scanning, keep full health and stats with per-file aggregates, share pending model initialization without changing provider keys or native Ollama, and keep the shared ONNX thread cap plus EOF regression.
rescue/l27-runs-cc-mcp-ux-20261030-repo-fix-mcp-ux-20261030 src/tools/get-team-patterns.ts Validate memory input and pattern categories, preserve existing memory IDs and default type, cap supplemental memory previews, and retain ranked exemplars and conflict handling from master.
rescue/l27-runs-cc-retrieval-20261030-repo-feat-retrieval-file-coverage-20261030 src/core/search.ts Recover keyword file coverage on duplicate-heavy ranked lists. Keep current path rescue, declaration ranking, source validation, and the original source inspection budget. Retain the current benchmark page.
rescue/l27-assist-runs-night-20261106-cb1-cbc-repo-wip src/index.ts, src/tools/search-codebase.ts, tests/search-compact-mode.test.ts Master already landed the reviewed implementation of relationship traversal and bounded continuation guidance in PR #166. Keep the older implementation in history.
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-wip src/tools/get-indexing-status.ts, src/tools/search-codebase.ts, tests/indexing-status-disk-stats.test.ts Use an RxJS import or a specific RxJS subject as evidence so ordinary JWT and email Subject names no longer create false conventions. Master already has the index counts and next-action fixes in 7404795 and 8fbcfc6. Keep local roadmap, obsolete smoke notes, and allowlist diagnostics in history.
rescue/l27-assist-runs-night-20261106-or-cbc-repo-wip src/cli-init.ts, src/cli.ts, tests/cli-init.test.ts, tests/cli.test.ts Master already landed CLI source coverage and uses the running package version in setup help (PR #165). Keep the old fixed-beta instructions in history.
rescue/l27-wt-cbc-night-init-wip README.md, docs/cli.md, docs/client-setup.md, src/cli-init.ts, src/cli.ts, tests/cli-init-bootstrap.test.ts, tests/cli-init-windows.test.ts, tests/cli-init.test.ts, tests/release-truth-surfaces.test.ts Master already includes the multi-client init flow, atomic configuration writes, and Windows bootstrap tests from e87020f and #165. Preserve the current setup and release guidance.
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-codex-cbc-product-relaunch-20261011 .github/workflows/test.yml, CHANGELOG.md, README.md, docs/capabilities.md, docs/cli.md, docs/client-setup.md, package.json, pnpm-lock.yaml, src/analyzers/angular/index.ts, src/cli-init.ts, src/cli.ts, src/core/file-watcher.ts, src/core/index-meta.ts, src/core/indexer.ts, src/core/manifest.ts, src/core/search.ts, src/core/symbol-references.ts, src/embeddings/index.ts, src/embeddings/transformers.ts, src/errors/index.ts, src/index.ts, src/storage/lancedb.ts, src/tools/get-code-relationships.ts, src/tools/get-indexing-status.ts, src/tools/search-codebase.ts, src/utils/ast-chunker.ts, src/utils/internal-source-resolver.ts, src/utils/tree-sitter.ts, src/utils/usage-tracker.ts, tests/analyzer-registry.test.ts, tests/cli-entrypoint-runtime.test.ts, tests/cli-init.test.ts, tests/cli.test.ts, tests/file-graph-freshness.test.ts, tests/file-graph-indexing-negatives.test.ts, tests/file-graph-integration.test.ts, tests/file-graph-traversal.test.ts, tests/get-symbol-references.test.ts, tests/indexer-model-mode.test.ts, tests/indexer-preview.test.ts, tests/internal-file-graph-serialization.test.ts, tests/internal-source-resolver.test.ts, tests/reranker.test.ts, tests/search-codebase-auto-heal.test.ts, tests/search-compact-mode.test.ts, tests/search-decision-card.test.ts, tests/search-edit-preflight-lite.test.ts, tests/search-model-free-fallback.test.ts, tests/search-rescue-nomination.test.ts, tests/search-source-validity.test.ts, tests/symbol-chunk-merge.test.ts, tests/symbol-references.test.ts Keep the genuine Angular declaration ownership work and its frozen fixture. Use current generation paths and bump the index format to migrate existing caches. Master already incorporates the rest of the model-free relaunch. Leave older workflow, setup, retrieval and release variants in history.
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-candidate-map-quality-eval scripts/run-eval.mjs, src/eval/map-quality-harness.ts, src/eval/types.ts, tests/fixtures/map-quality-benchmark-protocol.json, tests/map-quality-contract.test.ts, tests/map-quality-harness.test.ts The complete v2 map-quality variant is already in this branch with split support fixtures and gate tests. Keep v1 in history.
rescue/l27-runs-day-20261103-cbc-pro-v2-160-source-wip src/tools/get-indexing-status.ts, src/tools/search-codebase.ts, tests/indexing-status-disk-stats.test.ts Master already has the shared status and source-coverage fixes, and the companion CI-probe merge carries the independent pattern fix. Keep the duplicate and diagnostic-only allowlist tests in history.
rescue/l27-runs-ideaspine-cbc-consumer-20261104-cbc-source-fix-2.3.1-beta-doc-truth-20261104 CHANGELOG.md, README.md Current published-version wording supersedes the older point-in-time beta changelog and setup rewrite.
rescue/l27-wt-cbc-front-door-wip README.md, docs/capabilities.md, docs/client-setup.md Master supersedes the early front-door wording and setup behavior. Keep the older docs and release assertions in history.
rescue/l27-wt-cbc-help-wip src/index.ts, tests/cli-entrypoint-runtime.test.ts Master already routes help without probing a directory named help, from 0d733f1 and later CLI entrypoint changes.
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-codex-public-truth-and-product-clarity README.md, docs/benchmark.md, docs/capabilities.md, docs/cli.md, docs/client-setup.md, docs/demo.md, package.json, results/benchmark-presentation-evidence.json, src/cli-init.ts, tests/cli-init.test.ts, tests/mcp-client-templates.test.ts, tests/proof-truth-surfaces.test.ts Master already includes the historical benchmark archive and evidence JSON (10ba0a6), plus later setup corrections. Preserve current public docs and package behavior.
rescue/l27-assist-runs-day-20261204-l9-jobs-t3-157-codebase-context-wip src/core/indexer.ts, src/tools/get-team-patterns.ts, src/tools/types.ts, src/utils/usage-tracker.ts PR #203 already landed ranked conventions. Do not copy the older exemplar implementation or the three local benchmark-repo gitlinks. The excluded l23 exemplar tip is already an ancestor of this snapshot.
rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-head .codebase-context/memory.json, CHANGELOG.md, README.md, docs/benchmark.md, docs/capabilities.md, docs/comparison-table.md, docs/demo.md, results/contextbench-engineering-note-summary.json, src/cli-map.ts, src/cli.ts, src/core/index-meta.ts, src/core/indexer.ts, src/core/search.ts, src/core/symbol-references.ts, src/index.ts, src/tools/get-codebase-metadata.ts, src/tools/get-symbol-references.ts, tests/cli-entrypoint-runtime.test.ts, tests/contextbench-baseline-runner.test.ts, tests/contextbench-baseline-schema-gate.test.ts, tests/indexer-large-file-skip.test.ts, tests/proof-truth-surfaces.test.ts, tests/search-retrieval-strategy.test.ts Mixed work-folder snapshot contains internal notes, local memory and generated artifacts alongside an experimental side package and benchmark tooling. Preserve the snapshot in history and keep the current public tree.
rescue/l27-wt-cbc-final-smoke-backup-j11-source-fixture-state CHANGELOG.md, README.md, docs/benchmark.md, docs/capabilities.md, docs/cli.md, docs/client-setup.md, docs/demo.md, docs/review-context.md, package.json, pnpm-lock.yaml, scripts/run-eval.mjs, src/analyzers/angular/index.ts, src/analyzers/generic/index.ts, src/analyzers/nextjs/index.ts, src/analyzers/react/index.ts, src/analyzers/shared/metadata.ts, src/cli-formatters.ts, src/cli-init.ts, src/cli-map.ts, src/cli-memory.ts, src/cli.ts, src/constants/codebase-context.ts, src/core/analyzer-registry.ts, src/core/codebase-map.ts, src/core/file-watcher.ts, src/core/index-meta.ts, src/core/indexer.ts, src/core/manifest.ts, src/core/reranker.ts, src/core/search-quality.ts, src/core/search.ts, src/core/symbol-references.ts, src/embeddings/index.ts, src/embeddings/transformers.ts, src/embeddings/types.ts, src/errors/index.ts, src/eval/run-config.ts, src/eval/types.ts, src/health/derive.ts, src/index.ts, src/memory/store.ts, src/project-state.ts, src/review-cli.ts, src/review-context.ts, src/server/config.ts, src/server/http.ts, src/storage/index.ts, src/storage/lancedb.ts, src/storage/types.ts, src/tools/detect-circular-dependencies.ts, src/tools/get-codebase-health.ts, src/tools/get-codebase-metadata.ts, src/tools/get-indexing-status.ts, src/tools/get-memory.ts, src/tools/get-style-guide.ts, src/tools/get-symbol-references.ts, src/tools/get-team-patterns.ts, src/tools/index.ts, src/tools/refresh-index.ts, src/tools/remember.ts, src/tools/search-codebase.ts, src/tools/types.ts, src/types/index.ts, src/utils/ast-chunker.ts, src/utils/chunking.ts, src/utils/git-dates.ts, src/utils/language-detection.ts, src/utils/tree-sitter.ts, src/utils/usage-tracker.ts, tests/analyzer-registry.test.ts, tests/ast-chunker-integration.test.ts, tests/auto-refresh-e2e.test.ts, tests/cli-entrypoint-runtime.test.ts, tests/cli-init.test.ts, tests/cli-map-export.test.ts, tests/cli.test.ts, tests/codebase-map.test.ts, tests/contextbench-baseline-runner.test.ts, tests/contextbench-baseline-schema-gate.test.ts, tests/embedding-mismatch.test.ts, tests/eval-harness.test.ts, tests/file-watcher.test.ts, tests/get-symbol-references.test.ts, tests/impact-2hop.test.ts, tests/incremental-indexing.test.ts, tests/index-versioning-migration.test.ts, tests/indexer-analyzer-hints.test.ts, tests/indexer-exclude-patterns.test.ts, tests/indexer-large-file-skip.test.ts, tests/internal-file-graph-serialization.test.ts, tests/lancedb-corruption.test.ts, tests/multi-project-routing.test.ts, tests/nextjs-analyzer.test.ts, tests/openai-embeddings.test.ts, tests/pattern-detector.test.ts, tests/project-state.test.ts, tests/react-analyzer.test.ts, tests/relationship-sidecar.test.ts, tests/release-truth-surfaces.test.ts, tests/reranker-recovery.test.ts, tests/reranker.test.ts, tests/review-context.test.ts, tests/run-eval-config.test.ts, tests/search-codebase-auto-heal.test.ts, tests/search-compact-mode.test.ts, tests/search-decision-card.test.ts, tests/search-edit-preflight-lite.test.ts, tests/search-health-scope.test.ts, tests/search-quality.test.ts, tests/search-ranking.test.ts, tests/search-reranker-health.test.ts, tests/search-retrieval-strategy.test.ts, tests/search-safe-01.test.ts, tests/search-scoped-memory.test.ts, tests/server-config.test.ts, tests/symbol-chunk-merge.test.ts, tests/tools/dispatch.test.ts, tests/tree-sitter-symbols.test.ts, tests/zombie-guard.test.ts, vitest.config.mjs The fixture commit removes more than 320 repository paths and replaces them with synthetic input. Keep the fixture and its historical indexing-policy experiments in history, and preserve the current checkout and nested ignore behavior.

Kept in history only

  • The work-folder snapshots retain local memory, internal notes, the experimental context-package files and generated results, and the synthetic fixture in history.
  • The tree keeps master’s copy of its existing memory file. The snapshot’s changes to that file, three benchmark checkout pointers, two npm lockfile copies, and the old local roadmap and diagnostic tests stay in history.
  • The ContextBench protocol and public evidence already present on master remain current. The older benchmark claims and package setup instructions stay in history.
Branches with no tree changes
  • rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-recovered-milestone-v2.4-contextbench-be — Keep the current ContextBench protocol and fixtures from master (4525281 and its follow-ups), which already incorporate the frozen lane definitions and newer baseline selection governance.
  • rescue/l27-assist-runs-night-20261106-cb1-cbc-repo-wip — Master already landed the reviewed implementation of relationship traversal and bounded continuation guidance in PR Fix CLI relationship hops and preserve bounded source context #166. Keep the older implementation in history.
  • rescue/l27-assist-runs-night-20261106-or-cbc-repo-wip — Master already landed CLI source coverage and uses the running package version in setup help (PR fix(cli): disclose incomplete search coverage and pin beta setup #165). Keep the old fixed-beta instructions in history.
  • rescue/l27-wt-cbc-night-init-wip — Master already includes the multi-client init flow, atomic configuration writes, and Windows bootstrap tests from e87020f and fix(cli): disclose incomplete search coverage and pin beta setup #165. Preserve the current setup and release guidance.
  • rescue/l27-assist-runs-night-20261106-cb1-cbc-repo-cb5-rejected-20261107 — PR Fix CLI relationship hops and preserve bounded source context #166 already landed the shared relationship and compact-search work. Keep the separately rejected CB5 ranking and attribution variant in history.
  • rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-candidate-map-quality-eval — The complete v2 map-quality variant is already in this branch with split support fixtures and gate tests. Keep v1 in history.
  • rescue/l27-runs-day-20261103-cbc-pro-v2-160-source-wip — Master already has the shared status and source-coverage fixes, and the companion CI-probe merge carries the independent pattern fix. Keep the duplicate and diagnostic-only allowlist tests in history.
  • rescue/l27-runs-ideaspine-cbc-consumer-20261104-cbc-source-fix-2.3.1-beta-doc-truth-20261104 — Current published-version wording supersedes the older point-in-time beta changelog and setup rewrite.
  • rescue/l27-wt-cbc-front-door-wip — Master supersedes the early front-door wording and setup behavior. Keep the older docs and release assertions in history.
  • rescue/l27-wt-cbc-help-wip — Master already routes help without probing a directory named help, from 0d733f1 and later CLI entrypoint changes.
  • rescue/l27-users-bitaz-runs-cbc-dogfood-20261020-master-wip — Dogfood snapshot adds only a generated npm lockfile. Master uses pnpm and does not track package-lock.json.
  • rescue/l27-users-bitaz-runs-cbc-dogfood-20261020-master-wip-4530854 — The dogfood sibling has the same package-lock.json blob as 9faec02. Keep only the history and retain the current pnpm lockfile.
  • rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-codex-public-truth-and-product-clarity — Master already includes the historical benchmark archive and evidence JSON (10ba0a6), plus later setup corrections. Preserve current public docs and package behavior.
  • rescue/l27-assist-runs-day-20261204-l9-jobs-t3-157-codebase-context-wip — PR fix(patterns): rank team convention exemplars #203 already landed ranked conventions. Do not copy the older exemplar implementation or the three local benchmark-repo gitlinks. The excluded l23 exemplar tip is already an ancestor of this snapshot.
  • rescue/l27-runs-day-20261103-cbc-pro-v2-160-ci-probe-origin-head — Mixed work-folder snapshot contains internal notes, local memory and generated artifacts alongside an experimental side package and benchmark tooling. Preserve the snapshot in history and keep the current public tree.
  • rescue/l27-wt-cbc-final-smoke-backup-j11-source-fixture-state — The fixture commit removes more than 320 repository paths and replaces them with synthetic input. Keep the fixture and its historical indexing-policy experiments in history, and preserve the current checkout and nested ignore behavior.

Left for the separate PR #207 chain

Verification

  • The Windows and Node 24 full suite passed 1,669 tests across 174 files, with 2 skipped.
  • pnpm build, pnpm type-check, pnpm lint, pnpm format:check, and git diff --check passed. ESLint reported 150 warnings.
  • Frozen dependency install passed. The built evaluation command wrote a development report, reused a committed generation on request, and rejected a claim-slice run that asked to skip reindexing.
  • The first full run caught an Angular example split across chunks. The fix keeps the canonical snippet inside the indexed source chunk. The existing preflight regression passed on rerun.
  • Baseline on master passed 1,596 tests across 168 files, with 2 skipped.

Cleanup

The cleanup deletes the included rescue refs while this PR is open, after checking that their exact tips are present on the PR branch. After a later merge, the original tips remain reachable from master.

Fresh projects index without model runtimes; successful existing modes are preserved. Codex setup supports noninteractive project configuration and installed npm launchers. Current source validation, directed import/re-export traversal and root-relative persistence keep source evidence confined and explicit about unresolved paths.

Validation: build/typecheck/format and lint (zero errors); 97 files and 703 tests pass on the local Windows suite. Exact Node 22 Windows and Ubuntu WSL consumers matched all 377 package files and passed first-use source/graph checks. The matching 173-package production audit reported zero current findings. Natural-language retrieval still abstains on the frozen difficult question; native Codex tool use remains approval-denied. This is an unreleased source candidate.

AI-assisted engineering: Codex configured GPT-6.1 Sol High prime and specialists, GPT-6 Luna Medium implementation, GPT-6 Luna High independent review, and one bounded native GPT-6 Astra advisory. Configured routing is observed; backend serving identity is not attested.
Linux Node22 CI passed all703 assertions but correctly failed on an unhandled early rejection: this test started search before awaiting the case-variant filesystem probe. Resolve the probe first so the existing exact corruption rejection is handled immediately. Keep both success and rejection criteria unchanged.

Validation: focused case1/1 and source-validity15/15 pass; Prettier passes. Independent LunaHigh review confirms the sole test ordering change, with no runtime, fixture, assertion, skip or error-suppression change. Linux CI will confirm.

AI contribution: configured GPT-6 Luna Medium implementation, Luna High independent review and GPT-6.1 Sol High integration; backend serving identity is not independently attested.
PatrickSys and others added 22 commits December 6, 2026 02:35
…overed-milestone-v2.4-contextbench-be

Keep the current ContextBench protocol and fixtures from master (4525281 and its follow-ups), which already incorporate the frozen lane definitions and newer baseline selection governance.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
Cap retained keyword and semantic chunks during scanning, keep full health and stats with per-file aggregates, share pending model initialization without changing provider keys or native Ollama, and keep the shared ONNX thread cap plus EOF regression.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
…-wip

Carry the adapter override and matching pnpm lockfile together with the local HTTP lifecycle regression tests.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
Validate memory input and pattern categories, preserve existing memory IDs and default type, cap supplemental memory previews, and retain ranked exemplars and conflict handling from master.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
…coverage-20261030

Recover keyword file coverage on duplicate-heavy ranked lists. Keep current path rescue, declaration ranking, source validation, and the original source inspection budget. Retain the current benchmark page.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
…didate-map-quality-eval-v2

Carry the complete v2 frozen map-quality fixtures and diagnostics as development evidence only. Preserve existing eval modes and repository instructions.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
Master already landed the reviewed implementation of relationship traversal and bounded continuation guidance in PR #166. Keep the older implementation in history.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
Use an RxJS import or a specific RxJS subject as evidence so ordinary JWT and email Subject names no longer create false conventions. Master already has the index counts and next-action fixes in 7404795 and 8fbcfc6. Keep local roadmap, obsolete smoke notes, and allowlist diagnostics in history.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
Master already landed CLI source coverage and uses the running package version in setup help (PR #165). Keep the old fixed-beta instructions in history.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
Master already includes the multi-client init flow, atomic configuration writes, and Windows bootstrap tests from e87020f and #165. Preserve the current setup and release guidance.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
…ex-cbc-product-relaunch-20261011

Keep the genuine Angular declaration ownership work and its frozen fixture. Use current generation paths and bump the index format to migrate existing caches. Master already incorporates the rest of the model-free relaunch; leave older workflow, setup, retrieval and release variants in history.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
…-20261107

PR #166 already landed the shared relationship and compact-search work. Keep the separately rejected CB5 ranking and attribution variant in history.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
…didate-map-quality-eval

The complete v2 map-quality variant is already in this branch with split support fixtures and gate tests. Keep v1 in history.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
Master already has the shared status and source-coverage fixes, and the companion CI-probe merge carries the independent pattern fix. Keep the duplicate and diagnostic-only allowlist tests in history.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
…2.3.1-beta-doc-truth-20261104

Current published-version wording supersedes the older point-in-time beta changelog and setup rewrite.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
Master supersedes the early front-door wording and setup behavior. Keep the older docs and release assertions in history.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
Master already routes help without probing a directory named help, from 0d733f1 and later CLI entrypoint changes.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
Dogfood snapshot adds only a generated npm lockfile. Master uses pnpm and does not track package-lock.json.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
…0854

The dogfood sibling has the same package-lock.json blob as 9faec02. Keep only the history and retain the current pnpm lockfile.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
…ex-public-truth-and-product-clarity

Master already includes the historical benchmark archive and evidence JSON (10ba0a6), plus later setup corrections. Preserve current public docs and package behavior.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
…text-wip

PR #203 already landed ranked conventions. Do not copy the older exemplar implementation or the three local benchmark-repo gitlinks. The excluded l23 exemplar tip is already an ancestor of this snapshot.

Agent: codex gpt-6.2-sol 01a249cb-ca0e-7652-96ea-71de5d42c40d
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-06T06:16:34.268454Z bc7c4e7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bc7c4e7562

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +313 to +317
const activeRunner: MapQualityRunner = runner ?? runBoundedMap;
const validationErrors = validateProtocolFixturePair(protocol, fixture, fixtureName);
const surface = await activeRunner(rootPath);
const sources = createAxisSources(surface);
const results = fixture.tasks.map((task) => evaluateTask(task, sources));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Move the new evaluation harness under tests/

The new map-quality evaluator and scorer are implemented under src/eval/, but root AGENTS.md explicitly requires that the full evaluation harness code live in tests/. The test files only exercise this implementation; they do not satisfy that placement requirement. Move the new harness into the public test tree and update the evaluation runner and test imports accordingly.

AGENTS.md reference: AGENTS.md:L145-L150

Useful? React with 👍 / 👎.

Comment on lines +333 to +336
chunk.metadata = { ...chunkMetadata, ...donor?.metadata, ...chunk.metadata };
if (chunk.metadata.symbolKind !== 'class') delete chunk.metadata.complexity;
}
chunks = structuralChunks;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve file complexity for function-only Angular sources

For Angular files containing functional guards, interceptors, or helpers but no decorated class, the legacy line chunks contain calculated complexity, whereas createASTAlignedChunks() supplies neither complexity nor cyclomaticComplexity. Replacing the legacy chunks therefore leaves every chunk without a complexity value, and maxChunkComplexity() records zero. A function with 18 or more decision points previously contributed a complexity warning to codebase health but now appears non-complex. Preserve or independently calculate the file-level complexity without copying a class's complexity onto its methods.

Useful? React with 👍 / 👎.

@greptile-apps

greptile-apps Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5RetriggerView in Greptile

[Medium impact] The changes reach indexing, search, MCP tools, local model work, and development evaluation.

Fix the stale-file search case and satisfy the evaluation-code layout rule before merging.

Findings

  1. P1 Stale files hide current matches ▶
  2. P2 Harness breaks required directory layout ▶

Summary

This PR carries selected rescue-branch changes into the current tree.

  • Keyword search can reach more files when one file fills the top results.
  • Indexing keeps a bounded set of chunks while tracking full scan totals.
  • Angular search chunks keep the source and owner of each declaration.
  • The evaluation runner can score bounded codebase maps with map-quality fixtures.
  • MCP memory tools check inputs and limit supplemental pattern memories.
  • Concurrent local model requests share initialization and a four-thread cap.
  • RxJS detection relies on RxJS-specific evidence instead of ordinary Subject names.
  • The HTTP adapter dependency stays aligned with its lifecycle regression coverage.

Acknowledged scope: PatrickSys explicitly limits map-quality fixtures and diagnostics to development evidence. Missing claim-grade scoring is not reported. PatrickSys also explicitly keeps the listed older implementations and snapshots in history only; their omission from the tree is not reported.

Diagram

%%{init: {'theme': 'neutral', 'htmlLabels': false}}%%
flowchart LR
  A[Ranked keyword chunks] --> B[Count indexed file paths]
  B --> C[Choose chunk count]
  C --> D[Skip stale files]
  D --> E[Keep one result per file]
  E --> F[Return matching files]
Loading

Reviews (1) · Last reviewed commit: "Keep pattern examples inside their index..." · Reviewed by Greptile

Comment thread src/core/search.ts
Comment on lines +2085 to +2089
(candidateLimit >= limit && candidateFiles.size >= resultLimit)
) {
break;
}
candidateFiles.add(this.indexedFileKey(chunk.filePath));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Stale files hide current matches

The new check counts distinct paths before checking whether their files are current. Suppose a deleted file ranks first, followed by 100 chunks from one current file and then another current match. A two-result search stops widening after 30 chunks because it has counted two indexed paths. selectCurrentCandidates skips the deleted file but fills those 30 places with chunks from the same current file. The final file deduplication returns only one result.

Count distinct current files while selecting candidates, keeping the existing source-read budget.

Comment on lines +1 to +3
import { buildCodebaseMap, renderMapMarkdown } from '../core/codebase-map.js';
import { countUtf8Bytes, estimateTokenCountFromBytes } from './harness.js';
import { createProjectState } from '../project-state.js';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Harness breaks required directory layout

The new evaluation implementation lives in src/eval/map-quality-harness.ts, but AGENTS.md requires the full evaluation harness code to live in tests/. Move this development-only harness there and update its callers. This repository requirement must be satisfied before merging.

Context Used: AGENTS.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@PatrickSys

PatrickSys commented Dec 6, 2026 •

Copy link
Copy Markdown
Owner Author

Verdict: FIX FIRST.
Blocker: the PR still contains a private personal record in newly reachable history, and the Windows recovery fix from the fix round is absent from this head.
What would land it: publish the sanitized replacement with the recovery repair as the actual PR head, then run a fresh review.

Preserve the reviewed tree while excluding ancestry-only snapshots retained in the verified offline backup.

Agent: codex gpt-6.2-sol via claude-code session c132ec43-7bd7-4843-9af5-0b3204464b03
Recheck the original artifact name when Windows resolves an unlinked file to an NTFS tombstone. Reuse missing-file handling and keep rejecting extant escapes.

Agent: codex gpt-6.2-sol via claude-code session c132ec43-7bd7-4843-9af5-0b3204464b03
@PatrickSys
PatrickSys force-pushed the consolidate/rescue-20261206 branch from bc7c4e7 to 97443da Compare December 6, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants